﻿using Domain.Interface.Organization;
using Framework.Domain.DomainObject.Bo;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;

namespace Domain.Organization
{
	/// <summary>
	/// Permisstions
	/// </summary>
	[Table("Permisstions")]
	public class PermisstionEntity : BaseBoEntity
	{

		///<summary>
		///
		///</summary>
		public int? PermisstionCategory { get; set; }

		///<summary>
		///
		///</summary>
		public int? PermisstionType { get; set; }

		///<summary>
		///
		///</summary>
		public string PermisstionCode { get; set; }

		///<summary>
		///
		///</summary>
		public string Description { get; set; }

	}

	//End Entity

	public class PermisstionDomain : BaseBo, IPermisstionDomain
	{
		/// <summary>
		/// 数据实体
		/// </summary>
		private PermisstionEntity SelfEntity
		{
			get { return this.Entity as PermisstionEntity; }
			set { this.Entity = value; }
		}

		#region 构造函数

		public PermisstionDomain(PermisstionEntity entity)
		{
			this.SelfEntity = entity;
		}

		#endregion

		#region 属性

		///<summary>
		///
		///</summary>
		public int? GetPermisstionCategory()
		{
			return this.SelfEntity.PermisstionCategory;
		}

		///<summary>
		///
		///</summary>
		public void SetPermisstionCategory(int? PermisstionCategory)
		{
			this.SelfEntity.PermisstionCategory = PermisstionCategory;
		}

		///<summary>
		///
		///</summary>
		public int? GetPermisstionType()
		{
			return this.SelfEntity.PermisstionType;
		}

		///<summary>
		///
		///</summary>
		public void SetPermisstionType(int? PermisstionType)
		{
			this.SelfEntity.PermisstionType = PermisstionType;
		}

		///<summary>
		///
		///</summary>
		public string GetPermisstionCode()
		{
			return this.SelfEntity.PermisstionCode;
		}

		///<summary>
		///
		///</summary>
		public void SetPermisstionCode(string PermisstionCode)
		{
			this.SelfEntity.PermisstionCode = PermisstionCode;
		}

		///<summary>
		///
		///</summary>
		public string GetDescription()
		{
			return this.SelfEntity.Description;
		}

		///<summary>
		///
		///</summary>
		public void SetDescription(string Description)
		{
			this.SelfEntity.Description = Description;
		}

		#endregion

		#region IUserDomain 实现
		public string Test()
		{
			return "OK";
		}
		#endregion

	}

	//End Domain

}